#include "server.hpp"
#include "Log.hpp"


int main ()
{
    Buffer buf;
    for(int i = 0; i < 200;i++){
        std::string str = "helloworld" + std::string(" ") + std::to_string(i + 1) + "\n";
        buf.WriteStringAndPush(str);
    }
    while(buf.ReadAbleSize()){
        std::string line = buf.GetLineAndPop();
        // std::cout << line << std::endl;
        DBG_LOG("hello");
    }


    // Buffer buf;
    // std::string str = "hello world";
    // buf.WriteStringAndPush(str);

    // std::string tmp = buf.ReadAsString(buf.ReadAbleSize());
    // std::cout << tmp << std::endl;
    // std::cout << buf.ReadAbleSize() << std::endl;
    return 0;
}